package wechat

import (
	"github.com/gin-gonic/gin"
	apis "vrcm/src/vrcm/app/admin/apis/wechat"
	"vrcm/src/vrcm/app/admin/router"
)

func init() {
	router.NoCheckRole = append(router.NoCheckRole, registerSmsRouter)
}

// registerSmsRouter
func registerSmsRouter(v1 *gin.RouterGroup) {
	api := apis.Wechat{}
	r := v1.Group("/wechat")
	{
		r.POST("/get-wechat-token", api.GetWechatToken)
		r.POST("/get-wechat-user-info", api.GetWechatUserInfo)
		r.POST("/get-wechat-share-ticket", api.GetWechatShareTicket)
		r.POST("/to-open-corp-id", api.CorpIdToOpenCorpId)
	}
}
